package com.yqg.protection.mapper;

import com.yqg.protection.entity.VideoDevice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zxf
 * @since 2024-09-14
 */
@Mapper
public interface VideoDeviceMapper extends BaseMapper<VideoDevice> {

    List<VideoDevice> findPage(Integer pageNum, Integer pageSize, String clientName, String name, String deviceNum, String monitorNum, Integer level, Long organizationId, String isAllClient, List<Long> clientIds);

    Long findPageCount(String clientName, String name, String deviceNum, String monitorNum, Integer level, Long organizationId, String isAllClient, List<Long> clientIds);

    List<VideoDevice> findNoBindingSIMPage(Integer pageNum, Integer pageSize, String deviceId, Integer level, Long organizationId, String isAllClient, List<Long> clientIds);

    Long findNoBindingSIMPageCount(String deviceId, Integer level, Long organizationId, String isAllClient, List<Long> clientIds);

    List<VideoDevice> findAll(Integer level, Long organizationId, String isAllClient, List<Long> clientIds, Long clientId, String videoName);

    List<VideoDevice> exportData(String clientName, String name, String deviceNum, String monitorNum, Integer level, Long organizationId, String isAllClient, List<Long> clientIds);
}
